Text Feature Extraction for Public English Vocabulary Based on Wavelet Transform

. Text interpretation of public English vocabulary is a critical task in the subject of natural language processing, which uses technology to allow humans and computers to communicate e ﬀ ectively using natural language. Text feature extraction is one of the most fundamental and crucial elements in allowing computers to e ﬀ ectively grasp and read text. This paper proposes a text feature extraction method based on wavelet analysis that performs fast discrete wavelet transform and inverse discrete wavelet transform on the feature vectors under the traditional TF-IDF vector space model to address the problem of low feature di ﬀ erentiation of high-dimensional data in text feature extraction. In particular, due to the design of the Mallat algorithm, there is frequency aliasing in the signal decomposition process. This phenomenon is a problem that cannot be ignored when using wavelet analysis for feature extraction. Therefore, this paper proposes an improved inverse discrete wavelet transform method, in which the signal is decomposed by Mallat algorithm to obtain wavelet coe ﬃ cients at each scale and then reconstructed to the required wavelet space coe ﬃ cients according to the reconstruction method, and the reconstructed coe ﬃ cients are used to analyze the signal at that scale instead of the wavelet coe ﬃ cients obtained at the corresponding scale. Experiments on the public English vocabulary dataset reveal that the wavelet transform-based strategy suggested in this research outperforms existing feature extraction methods while maintaining greater classi ﬁ cation accuracy while reducing the dimensionality of the TF-IDF vector space model.


Introduction
With the development of the Internet and the continuous updating of computers and information technology, the information stored on the network is becoming more and more abundant. The number of texts, as an effective expression of information, is also growing rapidly. In recent years, with the rise of cloud computing and big data, it has enabled the effective organization and management of huge amount of public English vocabulary texts. How to obtain effective information efficiently and accurately has become the main purpose of text mining, information retrieval, and network opinion analysis. The diversity, complexity, redundancy, and irregularity of public English lexical text data pose a great challenge for text understanding. The core of text understanding is to convert text data into signals that can be perceived and analyzed by computers through mathemat-ical operations and to process them automatically to feed back the results depending on the task. In text understanding, one of the most fundamental and critical steps is text feature extraction. Therefore, feature reduction of complex feature space with high dimensionality of text becomes the main key point for text classification. The purpose of feature extraction is to effectively downscale the initial highdimensional features and select an optimal subset of features from the high-dimensional feature space [1].
The vast amount of public English lexical texts on the Internet has brought about a rich corpus of resources but at the same time has made text perception, analysis, and processing a huge challenge. The first challenge is that any user can generate and disseminate data, the majority of which is text, resulting in the rapid growth of the text corpus; the second challenge is that behind the big data lies a large amount of repetitive and meaningless data, which is of mixed quality and low value density. Finally, data exists in a variety of platforms, including structured data, semistructured data, and unstructured data, so "high feature dimensionality and complex structure" are the third challenge. The third challenge is "high feature dimensionality and complex structure." Addressing these challenges is the main obstacle for text data analysis [2]. The feature vector space is usually formed by using a set of words of a text as attribute vectors. The original feature vector space of text contains all the attributes of words, which is high-dimensional and sparse, but not all attributes contribute to the classification decision. Therefore, it is necessary to effectively reduce the dimensionality of the high-dimensional text feature space and extract the best set of classification feature attributes without degrading the system performance.
In recent years, many scholars have proposed a large number of effective methods and techniques in text feature extraction to address these three challenges. Words in public English, as the most basic units in a text, are the smallest elements that constitute sentences and discourse. Feature extraction of words is usually called word-level representation, but the number of words in a text, no matter in English, is very large, and sequential coding of these words alone is not only labor-intensive but also difficult to reveal the semantic relationships between words, so a vectorized representation of word level with measurable semantic distance is very necessary. Specifically, given a semantic metric, each word or phrase is projected as a high-dimensional vector, and the space formed by these vectors is called the vector space at the word level, thus transforming the unstructured text into a manageable structured form. Public English lexical texts still have the common problems in text data analysis: high dimensionality and feature redundancy. Data compression has been one of the important application areas of wavelet analysis, and this has led to great social and economic benefits [3]. Compressed perception theory proves that a signal can be sampled at a lower frequency and reconstructed with high probability as long as the signal is sparse in some orthogonal space. Compressed perception theory can efficiently capture information from sparse signals and perceive measurements through noncorrelation, a property that makes compressed perception widely used in real-life applications. Compressed perception theory has brought a revolutionary breakthrough by solving the current bottleneck in information acquisition and processing technology and has received widespread attention from scholars in various countries, ranging from medical imaging and signal coding to astronomy and geophysics [4]. The Boolean model [5][6][7] is an early text representation paradigm that uses a collection of "1" and "0" variables to represent the feature items of the related text. However, regardless of semantic relevance, text features are now allocated equal weights by default, making the represented features unable to match the realistic meaning.
In this paper, to address the problems of high dimensionality and feature redundancy of public English lexical text, wavelet transform and inverse wavelet transform are performed on the feature vectors under the text vector space model, so that the text feature space dimensionality is reduced. In particular, for the phenomenon of frequency aliasing in the signal decomposition process of Mallat algorithm, an improved algorithm model that can effectively eliminate frequency aliasing is proposed, expecting to achieve the purpose of accurate extraction of public English vocabulary text features, and the proposed method is verified based on the text classification task.
The paper's divisional layout is as follows: the related work is presented in Section 2. Section 3 analyzes the algorithm design of the proposed work. Section 4, discusses the experimentation and results. Finally, in Section 5, the research work is concluded.

Related Works
2.1. Text Feature Extraction. After text preprocessing and representation, text information still belongs to a highdimensional and highly sparse vector matrix, which makes the computer's computation and learning training process more difficult, and the classification effect is poor. Text feature selection is required to achieve even more dimensionality reduction. Finding the ideal subset of features in the solution space comprising all feature subsets and selecting the most representative combination of features with the least amount of time are the key to feature selection. Since computer devices can only recognize mathematical symbols such as binary, the original text language should be converted into a computer-recognizable representation before using computers to study text information. Among the many text representation methods, the most effective and accurate method is to build a text representation model. A good text representation model not only affects the accuracy of text detection but also is related to the relevance of the semantic connection between text data. Thus, text representation models have an irreplaceable position in text analysis. Boolean model [5] is an early text representation model, which represents the feature items of the corresponding text by the set of "1" and "0" variables. However, at this time, the text features are assigned with equal weights by default regardless of semantic relevance, which makes the represented features unable to match the realistic meaning. The vector space model (VSM) was proposed by Huang et al. [6] and is one of the classical models in text representation. This model is also a statistical model based on bag of words [7], which compares the words in a text to a bag of balls and represents the text ignoring the order of word occurrence, which has the feature of simplicity and speed. However, the individual unordered individuals alone are also unable to solve the relationship between words, which in turn causes the problem of losing semantic information. The above two models generally suffer from two main problems of high dimensionality and vector sparsity in the process of representing text, which eventually leads to a large amount of computer resources being spent but instead results in poor text clustering accuracy. In recent years, research scholars have focused on how to reduce the complexity of the text representation model on the basis of ensuring that the clustering accuracy is not affected, and the main solutions can be broadly divided into two categories: feature 2 Computational and Mathematical Methods in Medicine selection and feature extraction. Among them, feature selection is used to obtain a subset of features from the initial text feature data as the text representation according to certain rules. For example, the term frequency and inverse document frequency (TF-IDF) for text feature selection [8,9] can be used to solve the problem of equal weights. It gives feature words weight coefficients based on the number of occurrences and relative relevance of a word in the text, with the goal of filtering out feature words that highlight the text topic. Scholars have suggested feature selection techniques such as the chi-square test [10], information gain [11], and mutual information [2] since then, all of which have achieved the goal of decreasing the complexity of the text representation model without affecting the semantics of the text. In contrast, in the feature extraction approach, the extracted features are not derived from a subset of the initial text features, but a new set of text features created based on the initial text features is used as the text representation. The current common feature extraction methods tend to utilize the core idea of stitching features, where individuals with little difference in nature in the features are fused into new feature items. The Dirichlet allocation topic model [12] and the random mapping model [13] have made significant contributions to the research development of feature extraction as representatives in feature extraction models. With the rapid development of deep learning in recent years, Mikolov et al. [14] proposed the Word2Vec model, which has made great progress in feature extraction techniques. The model represents text by converting words in text space to vector space and using low-dimensional numerical vectors. It overcomes the text vector dimensionality explosion and increases the accuracy of conveying the semantics of the original text by representing words as word vectors by exploiting semantic linkages between contexts. After that, Kim et al. [15] proposed the Doc2vec model for text semantic feature extraction. The above mathematical models based on deep learning reflect the current situation that deep learning knowledge is gradually integrated into text representation as well as feature extraction; however, the problem of large-scale data and computational hardware loss required by deep learning models is also more significant.

Wavelet
Transform. The idea of wavelet transform comes from the method of stretching and translation, which is to compress and stretch the signal in the time axis; translation is to move the wavelet basis function in parallel with the waveform in the time auxiliary. In 1974, the French engineer Morlet first proposed wavelet transform, which was not available at that time. In 1974, the mathematician Meyer proved the existence of wavelet function and carried out an in-depth study in the theory. So far, wavelet transform theory has been widely used in signal analysis [16], image processing [17], fault diagnosis [18], and other engineering fields.
Since 1990, the wavelet transformation and its engineering applications have gradually received the attention of scientists from all over the world, and it is considered a major breakthrough to the Fourier transform. Wavelet transform is developed on the basis of Fourier transform, and they are essentially different from each other in time and frequency domains. Wavelet transform provides an adaptive analysis method of simultaneous local changes in time and frequency domains, which can automatically adjust the time and frequency windows to meet the needs of practical engineering, no matter analyzing low-frequency or high-frequency local signals. Characterizing the singularity of the signal is another feature of wavelet transform, and the maximum value of wavelet transform modes of the fault signal at different decomposition scales can represent the sudden change of the signal. The application of wavelet transform theory to the field of signal processing has been developed rapidly in recent years, mainly including signal denoising, data compression, and fault diagnosis.
The wavelet is defined as follows: let ψðtÞ be a square productable function, ψðtÞ ∈ L 2 ðRÞ. Its Fourier transform ψ ðωÞ is given by calling ψðtÞ as the base wavelet or mother wavelet; equation (1) is the tolerance condition of the wavelet function. Scaling and translating ψðtÞ, the function ψ a,τ ðtÞ is obtained as In formula (2), a and τ are the scaling factor and translation factor, respectively. The wavelet transform is defined as follows: after translating the wavelet function ψðtÞ by τ, the inner product operation is done with the signal to be analyzed xðtÞ at different scales a, as shown in the following equation: The equivalent frequency domain representation of equation (3) is shown in equation (4), where XðωÞ, ψðωÞ are the Fourier transforms of xðtÞ and ψðtÞ, respectively.
The wavelet transform can obtain a multiresolution description of the signal, and this description conforms to the general laws of human observation of the world. At the same time, wavelet transform has rich wavelet basis that can be adapted to signals with different characteristics. The features of wavelet and wavelet transform are (1) joint local analysis function in time domain and frequency domain; (2) multiresolution and multiscale analysis function; (3) a good local approximation basis for nonlinear system; and (4) fast algorithm based on conjugate mirror filter bank. At present, wavelet transform is widely used in industry, medical treatment, military, and other fields.

Algorithm Design
The vector space model simplifies text processing, and combinations between different words may achieve the effect of their alignment. However, its disadvantage is that the vector dimensions increase rapidly as the text set expands and the dictionary words increase. Because it is difficult for a single text vector to include all of the words in the dictionary, there are many dimensions with weight values of 0, resulting in high dimensionality and vector sparsity. Therefore, we need to reduce the dimensionality of the vectors in the traditional vector space model, which can be viewed as digital signals for text vectors. And wavelet analysis theory has strong advantages for digital signal processing. Existing theories and practices show that the transformed digital signal can be highly restored to the original signal, and wavelet analysis can uniquely capture the localization details, which makes it possible to operate in the wavelet transform space for this paper. In this paper, the DWT and IDWT methods used in this paper are performed on the vector space model to test the effectiveness of this text feature extraction method with the accuracy of text classification. The flow chart of the algorithm is shown in Figure 1. Firstly, the dataset is divided into words and a dictionary is constructed to obtain the TF-IDF feature space vectors; then, the obtained TF-IDF vectors are subjected to a one-dimensional discrete wavelet transform (DWT) to obtain the scale coefficients and wavelet coefficients; the scale coefficients and wavelet coefficients are summed up in the corresponding components to obtain the wavelet space vectors proposed in this paper. Finally, the scale coefficients and wavelet coefficients obtained in the previous step are summed up again by reducing the corresponding scale functions, and several of their middle dimensions are extracted from the obtained vectors to obtain the inverse discrete wavelet transform (IDWT) space vectors proposed in this paper.
3.1. TF-IDF Feature Extraction. Term frequency-inverse document frequency (TF-IDF) is one of the popular algorithms in the field of text mining, which is obtained by multiplying TF (word frequency) and IDF (inverse document rate) [19]. The actual meaning of TF is the probability of occurrence of a keyword in a document, as shown in equation (5). The more the keyword appears in a single text, the larger the TF value is, where n ij denotes the number of occurrences of word t i in text d j and ∑ k n k,j denotes the number of occurrences of all words in document d j .
The emergence of TF has led many scholars to use TF as a method for judging text similarity. Although this method can reflect the similarity of high-frequency words in each text, it can provide theoretical support for judging text similarity to a certain extent. However, there are many popular or basic words in all kinds of texts, so it is obvious that the TF frequency alone is not scientifically supported. Therefore, the IDF variable is introduced as the weight factor of TF, which is used to regulate the problem that the TF value is generally high among the texts of multiple categories. The IDF is calculated by taking the number of texts containing a certain keyword as the denominator and the number of texts in the corpus as the numerator, and the result of this fractional formula is taken as the logarithm to obtain the result of IDF, as shown in the following equation: In equation (6), D is the whole corpus and fj : t i ∈ d j g is the number of texts in which a word appears in the corpus. In order to avoid the situation that the denominator is 0 because the word does not exist in the corpus, the denominator is increased by 1. If a high-frequency word appears in a large number of texts in the corpus, it means that the word is less important for a single text and is not a keyword to be extracted. In this case, the IDF value of this word will be smaller, and the weight of this keyword will be reduced. For example, if all the texts in a corpus are about a person, the name of the person may appear in all the texts, and then, the IDF value will be very small. In summary, the formula of TF-IDF is shown in equation (7), which eliminates a large number of common words in the text while retaining highfrequency words and extracts words with a high degree of importance.   Computational and Mathematical Methods in Medicine wavelet high-pass filters G and g corresponding to the scale function and wavelet function to filter the signal in low pass and high pass. For convenience, the scale function is referred to as the low-frequency subband and the wavelet function is referred to as the sub-high-frequency subband. The Mallat decomposition algorithm is as follows: where t is the discrete time series number, t = 1, 2, ⋯, N; f ðtÞ is the original signal; j is the number of layers, j = 1, 2 ⋯ , J, J takes blog 2 Nc; H and G are wavelet decomposition filters; A j is the wavelet coefficient of the approximate part of the jth layer of the signal f ðtÞ; and D j is the wavelet coefficient of the detailed part of the signal f ðtÞ in layer j. The decomposition process of Mallat two-dimensional tower wavelet transform is shown in Figure 2.
Refactoring algorithm where j, J is the same as equation (8), j = J − 1, J − 2, …, 0; h, g are wavelet reconstruction; and A j and D j have the same meaning as equation (2). The reconstruction process of Mallat two-dimensional tower wavelet transform is shown in Figure 3.    Computational and Mathematical Methods in Medicine Therefore, the frequency overlap phenomenon is definitely generated during the above 3 steps. The interpolation of zeroes is a technique used in wavelet reconstruction, which does not affect the wavelet decomposition stage; i.e., it is not relevant to the problem discussed in this paper. In fact, the wavelet filter is not an ideal filter, and the nonideal frequency domain characteristics of the filter make it possible for the signal to be filtered with each bandlimited subband containing its neighboring subband components, thus generating the frequency aliasing phenomenon. However, considering the unevenness of frequency aliasing in each band-limited subband (approximate and detailed), there is almost no aliasing in the approximate band-limited subband. In fact, interval sampling is the root cause of frequency aliasing, because it violates Shannon's sampling theorem. Therefore, if the original signal contains frequency components close to the sampling edge, the decomposition according to Mallat's algorithm will definitely generate frequency aliasing imagination.

Improved Mallat Algorithm.
After a thorough study of Mallat algorithm, it is clear that the implementation of Mallat algorithm inevitably generates frequency aliasing. We can see from the wavelet decomposition and reconstruction algorithms that the wavelet decomposition process is sampling at intervals and the reconstruction process is interpolating zeros at intervals; both processes cause frequency aliasing, but in different directions. That is to say, the decomposition process generated by the overlap in the reconstruction process has been corrected. However, this also provides an idea of how to solve the frequency aliasing phenomenon generated by Mallat decomposition algorithm: after decomposing the signal by Mallat algorithm to obtain wavelet coefficients at each scale and then reconstructing to the required wavelet space coefficients cd j according to the reconstruction method and using the reconstructed coefficients cd j to analyze the signal at that scale instead of the wavelet coefficients cd j obtained at the corresponding scale. In this way, the effects of frequency aliasing can be better resolved to achieve the desired goal. In this paper, this algorithm is called subband signal reconstruction algorithm. The improved algorithm model is shown in Figure 4. Using this model, the TF-IDF features of the equation input are redecomposed and the simulation results show that the algorithm is practical and effective. Figure 5 shows the analysis of the TF-IDF feature vector using this algorithm and the spectral effect of the detailed signal d j .

Experiment Preparation.
The text dataset of public English vocabulary used in this paper is a corpus retrieved from the web. It contains a total of 10,505 samples from eight categories: education, culture, finance and economics, science and technology, sports, military, agriculture, and politics. This data source is rich and suitable for the study of text classification. The number of samples in each cate-gory is shown in Table 1. Two major groups of experiments are conducted in this paper. The first set of experiments tests the classification performance of each training space when targeting internal samples (the test set and training set are from the same distribution), and 80% of the data in the experiments are used for the training set and the rest for testing; the second set of experiments verifies the superiority of the wavelet analysis method proposed in this paper for exotic samples. The text data with the categories of education, culture, finance and economics, science and technology, and sports are used as the training set, and the text data with the categories of military, agriculture, and politics are used as the test set (the training set and the test set are from different distributions). Singular value decomposition (SVD) [20], independent component analysis (ICA) [21], principal component analysis (PCA) [22] method, and the modified Mallat method in this paper were used to extract the feature vectors under the vector space (TF-IDF). The feature vectors (TF-IDF) of the vector space are extracted by dimensionality reduction. The accuracy of each space is measured using the KNN method (cosine distance as the similarity measure), and the dimensionality of SVD space, ICA space, and PCA space is consistent. In this paper, the precision, recall, and F1-score are used to evaluate the model performance. The accuracy rate indicates the percentage of correctly predicted results to the total samples; the precision rate indicates the number of correctly predicted samples among the samples predicted to be of that class; the recall rate is the probability of being predicted to be of that class among the samples that are actually of that class; both the precision rate and recall rate are considered simultaneously, so that both are simultaneously maximized and a balance is achieved.   Table 2, and the F1-score of the method in this paper is improved by 04%, 7.10%, and 3.50% compared with that of SVD, ICA, and PCA, respectively. The results show that the wavelet transform-based feature extraction methods proposed in this paper can all obtain robust feature representations, which confirms the stability of the method.
In order to show more intuitively and clearly the effect of the improved feature extraction algorithm on the index improvement of classifier classification, the F1-score of each algorithm under different categories is plotted in this paper based on the data in Table 2 as shown in Figure 6. It can be observed that the ICA and PCA methods have similar feature extraction ability for public English lexical texts, while the wavelet transform-based method proposed in this paper has the best feature extraction ability for each category. This is because the wavelet transform inherits and develops the localization idea of the short-time Fourier transform, overcomes the shortcomings such as the window size does not change with frequency, and can fully highlight the features of certain aspects of the problem through the transform. It can localize the analysis of time (space) frequency and gradually carry out multiscale refinement of the signal (function) through the telescopic translation   Table 3 shows the detailed classification accuracy of the three categories in the test set. From the table, it can be concluded that the proposed method based on the improved inverse discrete wavelet transform can have better feature extraction ability for unseen categories of text, while the SVD, ICA, and PCA algorithms depend on the characteristics of the training set.

Conclusions
In this paper, an improved inverse discrete wavelet transformation text feature extraction method based on the Mallat algorithm is proposed for the problem that public English lexical text features have high dimensionality and the features contain redundant information. In this work, the wavelet transform is simply the sum of the respective components of the low-frequency and high-frequency vectors created by the one-dimensional discrete wavelet transform. After the one-dimensional discrete wavelet transform, the dimensionality of the low-frequency and high-frequency vectors is the same and around half of the original vectors, meeting the dimensionality reduction goal. We discover the primary reasons of frequency mixing in the Mallat algorithm in this work, based on an in-depth examination of the algorithm, and suggest a better model to solve the frequency mixing. Under certain circumstances, the proposed inverse wavelet space may have a higher accuracy for a specific classification category. Many low-dimensional feature extraction approaches lose crucial classification features; however, the highly sparse orthogonal wavelet space vector in this study, according to compressed perception theory, can reliably maintain the important properties of the most original feature vector. The next work is to check whether the feature extraction efficiency of wavelet analysis method has certain advantages in experiments and how to expand the specific conditions of this paper's inverse wavelet space to make its specific advantages greater.

Data Availability
The datasets used during the current study are available from the corresponding author on reasonable request.

Conflicts of Interest
The authors declare that they have no conflict of interest.